package com.hnqcgczy.shop.dao;



import com.hnqcgczy.shop.vo.TProduct;

import java.sql.SQLException;
import java.util.List;

public interface IUserDAO {
    //查看首页商品
    List<TProduct> listAllProduct() throws SQLException;
    //查看商品详情
    TProduct  queryById(int tp_id) throws  SQLException;
    //搜索商品
    List<TProduct> queryAny(int page,int pageSize) throws  SQLException ;
    //

//    boolean login(String username,String pwd) throws SQLException;

//    public abstract  boolean denglv(String id,String password) throws  SQLException;
//    public  abstract  boolean   newly(TUser tUser) throws SQLException;
//    public  abstract   boolean deleterByID(String tu_id )throws  SQLException;
//    public  abstract  TUser Userbyid(String tu_id)throws  SQLException;
//    public  abstract List<TUser>getserName(String tu_name)throws SQLException;
//    public  abstract List <TUser>getAll()throws  SQLException;
//    List<TUser>querAny(Object...obj)throws  SQLException;
//    boolean update(TUser tUser)throws  SQLException;
//    boolean name(String tu_id) throws  SQLException;
}
